/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jps_s10996_s7175.expression.terminal;

import edu.pjwstk.jps.ast.terminal.ITerminalExpression;
import jps_s10996_s7175.ast.Expression;

/**
 *
 * @author Tomasz
 * @param <T>
 */
public abstract class TerminalExpression<T> extends Expression implements ITerminalExpression<T>{
    private T tValue;
    public TerminalExpression(T oObject){
        this.tValue = oObject;
    }
    /**
     *
     * @return
     */
    @Override
    public T getValue(){
        return this.tValue;
    }

    @Override
    public String toString(){
        return this.getClass().getName() + " > " + this.tValue.toString();
    }
}
